﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GamePanel : MonoBehaviour
{
    // Start is called before the first frame update
    void Awake()
    {
        EventCenter.AddListener(EventDefine.ShowGamePanel,Show);
        gameObject.SetActive(false);
    }

    private void Show()
    {
        gameObject.SetActive(true);
    }

    void OnDestroy()
    {
        EventCenter.RemoveListener(EventDefine.ShowGamePanel, Show);
    }


    // Update is called once per frame
    void Update()
    {
        
    }
}
